package org.tech4j.common.core.model.result;

/**
 * @program: tech4j-common
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/1 21:15
 **/
public interface IResult {

    int SUCCESS_CODE = 0;

    String SUCCESS_MESSAGE = "成功";

    int FAILED_CODE = 500;

    String FAILED_MESSAGE = "系统错误";

    /**
     * 编码
     * @return
     */
    Integer getCode();

    /**
     * 返回码
     */
    void setCode(Integer code);

    /**
     * 消息
     * @return
     */
    String getMessage();

    /**
     * 返回信息
     */
    void setMessage(String message);

    /**
     * 是否成功
     * @return
     */
    Boolean getSuccess();

    /**
     * 是否成功
     */
    void setSuccess(Boolean success);
}
